//
//  BMHStoreObserver.h
//  BMHVideoMain
//
//  Created by feng song on 2017/11/8.
//  Copyright © 2017年 BAOMIHUA.COM. All rights reserved.
//  AppStore内购支付

#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>     //内购系统框架
@interface BMHStoreObserver : NSObject<SKPaymentTransactionObserver,SKProductsRequestDelegate>

//产品数组
@property (nonatomic, strong) NSMutableArray *productsPurchased;

//产品ID
@property (nonatomic, copy) NSString *purchasedID;

//金额
@property (nonatomic, copy) NSString *payMoney;

//订单
@property (nonatomic, copy) NSString *payOrder;

/**
 内购实例化

 @return 实例化方法
 */
+ (BMHStoreObserver *)sharedInstance;

/**
 请求购买方法

 @param productId 付款商品ID
 @param money     付款金额
 @param order     付款订单
 */
-(void)buy:(NSString*)productId withPayMonyNum:(NSString *)money andPayOrder:(NSString *)order;

@end
